<div class="header_con">
    <div class="header">
        <div class="welcome fl">欢迎来到网上商城!</div>
        <div class="welcome fl" style="margin-left: 20px"><a href="/">首页</a></div>
        <div class="fr">
            {% if user.is_authenticated %}
            <div class="login_btn fl">
                欢迎您：<em>{{ user.username }}</em>
                <span>|</span>
                <a href="/user/logout/">退出</a>
            </div>
            {% else %}
            <div class="login_btn fl">
                <a href='/user/login/'>登录</a>
                <span>|</span>
                <a href="user/register/">注册</a>
            </div>
            {% endif %}
            <div class="user_link fl">
                <span>|</span>
                <a href='/user/'>用户中心</a>
                <span>|</span>
                <a href=/cart/>我的购物车</a>
                <span>|</span>
                <a href='/user/order/1/'>我的订单</a>
            </div>
        </div>
    </div>		
</div>